import request from '@/utils/request'

// 创建水量统计
export function createWaterCount(data) {
  return request({
    url: '/ht/water-count/create',
    method: 'post',
    data: data
  })
}

// 更新水量统计
export function updateWaterCount(data) {
  return request({
    url: '/ht/water-count/update',
    method: 'put',
    data: data
  })
}

// 删除水量统计
export function deleteWaterCount(id) {
  return request({
    url: '/ht/water-count/delete?id=' + id,
    method: 'delete'
  })
}

// 获得水量统计
export function getWaterCount(id) {
  return request({
    url: '/ht/water-count/get?id=' + id,
    method: 'get'
  })
}

// 获得水量统计分页
export function getWaterCountPage(query) {
  return request({
    url: '/ht/water-count/page',
    method: 'get',
    params: query
  })
}

// 导出水量统计 Excel
export function exportWaterCountExcel(query) {
  return request({
    url: '/ht/water-count/export-excel',
    method: 'get',
    params: query,
    responseType: 'blob'
  })
}
